<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreatePedidoDetalleTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreatePedidoDetalleLabel_id}" for="id" />
                    <h:inputText id="id" value="#{pedidoDetalleController.selected.id}" title="#{bundle.CreatePedidoDetalleTitle_id}" required="true" requiredMessage="#{bundle.CreatePedidoDetalleRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.CreatePedidoDetalleLabel_cantidad}" for="cantidad" />
                    <h:inputText id="cantidad" value="#{pedidoDetalleController.selected.cantidad}" title="#{bundle.CreatePedidoDetalleTitle_cantidad}" required="true" requiredMessage="#{bundle.CreatePedidoDetalleRequiredMessage_cantidad}"/>
                    <h:outputLabel value="#{bundle.CreatePedidoDetalleLabel_precio}" for="precio" />
                    <h:inputText id="precio" value="#{pedidoDetalleController.selected.precio}" title="#{bundle.CreatePedidoDetalleTitle_precio}" required="true" requiredMessage="#{bundle.CreatePedidoDetalleRequiredMessage_precio}"/>
                    <h:outputLabel value="#{bundle.CreatePedidoDetalleLabel_productoId}" for="productoId" />
                    <h:selectOneMenu id="productoId" value="#{pedidoDetalleController.selected.productoId}" title="#{bundle.CreatePedidoDetalleTitle_productoId}" required="true" requiredMessage="#{bundle.CreatePedidoDetalleRequiredMessage_productoId}">
                        <f:selectItems value="#{productoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreatePedidoDetalleLabel_pedidoId}" for="pedidoId" />
                    <h:selectOneMenu id="pedidoId" value="#{pedidoDetalleController.selected.pedidoId}" title="#{bundle.CreatePedidoDetalleTitle_pedidoId}" required="true" requiredMessage="#{bundle.CreatePedidoDetalleRequiredMessage_pedidoId}">
                        <f:selectItems value="#{pedidoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreatePedidoDetalleLabel_estadoId}" for="estadoId" />
                    <h:selectOneMenu id="estadoId" value="#{pedidoDetalleController.selected.estadoId}" title="#{bundle.CreatePedidoDetalleTitle_estadoId}" required="true" requiredMessage="#{bundle.CreatePedidoDetalleRequiredMessage_estadoId}">
                        <f:selectItems value="#{estadoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreatePedidoDetalleLabel_borradoId}" for="borradoId" />
                    <h:selectOneMenu id="borradoId" value="#{pedidoDetalleController.selected.borradoId}" title="#{bundle.CreatePedidoDetalleTitle_borradoId}" required="true" requiredMessage="#{bundle.CreatePedidoDetalleRequiredMessage_borradoId}">
                        <f:selectItems value="#{borradoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{pedidoDetalleController.create}" value="#{bundle.CreatePedidoDetalleSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{pedidoDetalleController.prepareList}" value="#{bundle.CreatePedidoDetalleShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreatePedidoDetalleIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
